import { getAction, putAction } from '@/api/manage'
import { serviceApi } from '@/api/common.js'

export const api = {
}

/**
 * 获取租户个性化配置
 * @param {*} params
 * @returns
 */
export const getSysCustomConfig = (tenantId, params) => getAction(serviceApi.auth + `/customs/configs/tenant/${tenantId}`, params)

/**
 * 保存租户个性化配置
 * @param {*} params
 * @returns
 */
export const editSysCustomConfig = params => putAction(serviceApi.auth + '/customs/configs', params)

/**
 * 系统默认个性化配置
 * @param {*} params
 * @returns
 */
export const defaultSysCustomConfig = params => getAction(serviceApi.auth + '/customs/configs/front', params);
